<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: yunwuxin <448901948@qq.com>
// +----------------------------------------------------------------------

return [
    'qyj' => [
        /**
         * Debug 模式，bool 值：true/false
         *
         * 当值为 false 时，所有的日志都不会记录
         */
        'debug'  => true,
        /**
         * 账号基本信息，请从微信公众平台/开放平台获取
         */
        'app_id'  => 'wx82c4969887e43793',         // AppID
        'secret'  => '12feadf27820b08ed9506421dd0fa995',     // AppSecret
        'token'   => 'dydh',          // Token
        'aes_key' => 'YMnoRCObnpZOCWiujjYS1nUSYmwSF6Ww7mtg3cSacbW',                    // EncodingAESKey，安全模式下请一定要填写！！！
        /**
         * 日志配置
         *
         * level: 日志级别, 可选为：
         *         debug/info/notice/warning/error/critical/alert/emergency
         * permission：日志文件权限(可选)，默认为null（若为null值,monolog会取0644）
         * file：日志文件位置(绝对路径!!!)，要求可写权限
         */
        'log' => [
            'level'      => 'debug',
            'permission' => 0777,
            'file'       => '../runtime/easywechat.log',
        ],
        'oauth' => [
            'scopes'   => ['snsapi_base'],
            'callback' => 'index/payment/info',
        ],
        
    ],

    'payment' => [
        // 前面的appid什么的也得保留哦
        'app_id' => 'wx82c4969887e43793',
        // ...
        // payment
        'payment' => [
            'merchant_id'        => '1436743002',
            'key'                => 'v6vYMOGNCqEaHnbCHKZ94eHkVbBNJd14',
            'cert_path'          => '../runtime/apiclient_cert.pem',//'/weixinpay/apiclient_cert.pem', // XXX: 绝对路径！！！！
            'key_path'           => '../runtime/apiclient_key.pem',//'/weixinpay/apiclient_key.pem',      // XXX: 绝对路径！！！！
            'notify_url'         => 'http://dhclub.tigerisa.com/api/Callback/wxpay_callback',       // 你也可以在下单时单独设置来想覆盖它
            // 'device_info'     => '013467007045764',
            // 'sub_app_id'      => '',
            // 'sub_merchant_id' => '',
            // ...
        ],
    ],

    

];